package com.sky.service;

import com.sky.entity.AddressBook;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface addressBookService {


    void addAddressBook(AddressBook addressBook);

    List<AddressBook> list();

    AddressBook getDefault();

    void deleteAddressBook(Long id);

    AddressBook getAddressBookById(Long id);

    void updateAddressBook(AddressBook addressBook);

    void updateDefaultAddressBook(AddressBook addressBook);
}
